package com.linln.admin.shop.validator;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class AddShopUserValid implements Serializable {


    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message = "手机号码格式不正确")
    private String phone;

    @NotBlank(message = "用户参数不能为空")
    private Long userId;

    @NotBlank(message = "店铺参数不能为空")
    private String shopsId;
}